package edu.kjxy.worker0322;

public class worker03 {

	public static void main(String[] args) {
		int[] array = {3, 6, 54, 8, 4, 2, 101, 4, 11, 22, 33, 55};
		int max = array[0];
		int min = array[0];
		for (int i = 1; i < array.length; i++) {
			if(array[i] > max) max = array[i];
			if(array[i] < min) min = array[i];
		}
		System.out.println("max = %d, min = %d".formatted(max, min));
	}

}
